import requests
from bs4 import BeautifulSoup

headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
}


response = requests.get(f"https://t.bilibili.com/956187357982228488?spm_id_from=333.999.0.0", headers=headers)
html = response.text
soup = BeautifulSoup(html, "html.parser")
all_titles = soup.findAll("div", attrs={"class":"bili-rich-text__content"})
title_string = all_titles.string
print(title_string)